//click_dble_on_map.sqf
#include "ACV_Constantes.h"
#include "ACV_ID_main_dlg.h"
private ["_display","_txt_sys","_pos","_s"];
disableSerialization;
_display = uiNamespace getVariable "R3F_ACV_MAIN_DLG";
_txt_sys = _display displayCtrl ACV_DLG_ID_Main_TxtSystem;
if ((count _this) > 0) then {
	if ((_this select 1) == 0) then {
		_pos = (_this select 0) ctrlMapScreenToWorld [_this select 2,_this select 3];
		_pos set [2,0];
		if (_this select 5) then {
			ACV_PosClick = format ["%1 %2",ACV_PosClick,_pos];
		} else {
			ACV_PosClick = _pos;
			ACV_PosMapACV = _pos;
		};
		ACV_POS_MARKER setMarkerPosLocal ACV_PosClick;
		ACV_POS_MARKER setMarkerAlphaLocal 0.7;
		copytoClipboard str (_pos);
		_s = format [localize "STR_MSG_COPYCLIPBOARDPOS",_pos];
		_txt_sys ctrlSetText _s;
	};
};